package com.humngyang.com.hmy.study.concurrency.myannoations.filter;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/threadlocal")
public class TheradLocalController {

    @ResponseBody
    @RequestMapping("/test")
    public Long test() {
        return ReuqestHolder.getId();
    }


}
